$def with ()

<ul class="nav-bar">
  <li class="$('selected' if ctx.path == '/import/batch/new' else '')">
    <a data-ol-link-track="BatchImportNav|NewBatch" href="/import/batch/new">$_("New Batch Import")</a>
  </li>
  <li class="$('selected' if ctx.path == '/import/batch/pending' else '')">
    <a data-ol-link-track="BatchImportNav|Pending" href="/import/batch/pending">$_("Pending Imports")</a>
  </li>
</ul>
